package com.wzh.mall.auth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @program: mall
 * @description:
 * @author: Mr.Wang
 * @create: 2021-09-14 16:57
 **/
@Configuration
public class MallWebConfig implements WebMvcConfigurer{


    /**
      * @Description: 配置视图映射器
      * @Param: [registry]
      * @return: void
      * @Author: Mr.Wang
      * @Date: 2021/9/14
      * @Time: 16:58
      */      

    /*
    *  @GetMapping("/login.html")
        public String loginPage(){
            return "login";
        }
    * */
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
//        registry.addViewController("/login.html").setViewName("login");
        registry.addViewController("/reg.html").setViewName("reg");
    }
}
